<?
include("./_common.php");
include("$g4[path]/_head.php");

$shop = get_shop();
$goods_dir = $g4[path]."/data/goods/";


$oid = get_param("oid");

$order_row = mysql_fetch_array(mysql_query("select * from g4_order where oid='".$oid."' limit 1"));


$_SESSION["tmp_oid"] = "";
?>
<link rel="stylesheet" href="<?=$g4['path']?>/shop/style.css" type="text/css">
<script language="javascript" src="<?=$g4['path']?>/shop/shop.js"></script>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td>
			<span class="orderTabTitle">주문완료</span>
			<table cellpadding="5" cellspacing="0" border="0" width="100%" style="border:solid 1px #D7D7D7">
				<tr>
					<td>주문 코드</td>
					<td><?=$oid?></td>
				</tr>
				<tr><td colspan="2" height="1" bgcolor="#D7D7D7"></td></tr>
				<tr>
					<td>결제 금액</td>
					<td><?=number_format($order_row[pay_amount])?></td>
				</tr>
				<tr><td colspan="2" height="1" bgcolor="#D7D7D7"></td></tr>
				<tr>
					<td>결제 종류</td>
					<td><?=get_paymethod($order_row[pay_method])?></td>
				</tr>
				<tr><td colspan="2" height="1" bgcolor="#D7D7D7"></td></tr>
				<tr>
					<td colspan="2" style="padding:10px">
					상단의 주문조회에서 주문내역이 확인 가능합니다.<br>
					물품이 배송되면 주문조회에서 해당 주문에 대한 배송완료 처리를 해주셔야 합니다.
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td align="center" height="50">
		<button class="cart_btn1" onclick="location.href='<?=$g4[paht]?>/index.php'">완료</button>
		</td>
	</tr>
</table>
<?
include("$g4[path]/_tail.php");

?>